<template>
	<view>
		<u-button @click="logout">推出登录</u-button>
	</view>
</template>

<script>
export default {
	data(){
		return {
			
		}
	},
	methods:{
		//退出登录
		logout(){
			const nim=getApp().globalData._nimInstance
			if(nim){
				nim.disconnect()
				uni.reLaunch({
					url:"/pages/login"
				})
			}
		}
	}
}
</script>

<style>
</style>
